<?php include_once 'common/header.php';  ?>
<!-- admin_main -->
<div class="admin_main">
	<!-- Admin_top end -->
	<?php include_once 'common/account_left.php';  ?>
	<!-- Admin_Left End -->
	<div class="admin_right">
		<div class="admin_right_title">
			<strong>资金管理</strong> &gt;&gt; 资金
		</div>
		
		<div class="admin_right_con">
			<table border="0" cellspacing="1" cellpadding="0" bgcolor="#CCCCCC">
			  <tr style="color:#0068b7;">
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>编号</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>用户名</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>姓名</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>类型</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>线上充值</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>线下充值</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>平台充值</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>提现</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>到账</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>手续费</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>扣除费用</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>实际投资</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>投标失败返回</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>投标成功</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>代收累计</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>利息累计</strong></td>
				<!--<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>总余额</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>可用余额</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>冻结金额</strong></td>
				<td height="35" align="center" valign="middle" bgcolor="#F1F1F1"><strong>当前代收</strong></td>
			  --></tr>
			  <?php foreach($account_list as $key=>$account){?>
			  <tr>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $account['user_id'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $account['username'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $account['realname'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $var_user_loan[$account['is_loan']];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $account['online_recharge'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $account['local_recharge'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo $account['platform_recharge'];?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo number_format($account['cash_money'],2);?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo number_format($account['cash_success'],2);?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo number_format($account['recharge_fee'],2);?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo number_format($account['deduct_fee'],2);?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo number_format($account['tender_money'],2);?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo number_format($account['inverst_false'],2);?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo number_format($account['inverst_success'],2);?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo number_format($account['total_collection'],2);?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo number_format($account['total_interest'],2);?></td>
				<!--<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo number_format($account['total'],2);?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo number_format($account['use_money'],2);?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo number_format($account['no_use_money'],2);?></td>
				<td height="35" align="center" valign="middle" bgcolor="#FFFFFF"><?php echo number_format($account['collection'],2);?></td>
			  --></tr>
			  <?php }?>
			  <tr>
			  	<td colspan="16">
			  		<form action="/ychadmin/account/accountstatlist/" method="get">
			  			用户名：<input type="text" id="username" name="username" size="10" value="<?php echo $username?>" />
			  			类型：<select id="is_loan" name="is_loan">
			  				<option value="-1" <?php if($is_loan==-1){?>selected="selected"<?php }?>>所有</option>
			  				<?php foreach($var_user_loan as $key=>$value){?>
			  				<option value="<?php echo $key?>" <?php if($is_loan==$key){?>selected="selected"<?php }?>><?php echo $value;?></option>
			  				<?php }?>
			  			</select>
			  			开始时间：<input type="text" id="strtime" name="strtime" size="7" value="<?php echo $strtime;?>"  onfocus="WdatePicker()" />
			  			结束时间：<input type="text" id="endtime" name="endtime" size="7" value="<?php echo $endtime;?>"  onfocus="WdatePicker()" />
			  			<input type="submit" value="查询" />
			  		</form>
			  	</td>
			  </tr>
			  <tr>
			  	<td colspan="2"><a href="/ychadmin/account/accountstatexcel/?username=<?php echo $username;?>&is_loan=<?php echo $is_loan;?>&strtime=<?php echo $strtime;?>&endtime=<?php echo $endtime;?>">导出数据</a></td>
			  	<td colspan="12"  height="35" align="center" valign="middle" bgcolor="#FFFFFF" class="page"><?php echo $this->pagination->create_links();?></td>
			  </tr>
			</table>
			</div>
	</div>
<!-- Admin_Right End -->
</div>
<!-- admin_main end -->
</body>
</html>
